﻿using System.ComponentModel.DataAnnotations;
using YNTK.Common.Enum;
using YNTK.Dependency;

namespace YNTK.System.Entitys.Dto.Mechanism
{
    /// <summary>
    /// 添加机构请求模型
    /// </summary>
    [SuppressSniffer]
    public class AddMechanismRequestModel
    {
        /// <summary>
        /// 父级机构id
        /// </summary>
        public string parentId { get; set; }

        /// <summary>
        /// 机构类型(0.分支机构 1.部门 2.岗位 3.职位 4.职务)
        /// </summary>
        [Required(ErrorMessage = "请选择机构类型")]
        public MechanismTypeEnum type { get; set; }

        /// <summary>
        /// 机构编码
        /// </summary>
        [Required(ErrorMessage = "机构编码不能为空")]
        public string code { get; set; }

        /// <summary>
        /// 机构名称
        /// </summary>
        [Required(ErrorMessage = "机构名称不能为空")]
        public string name { get; set; }

        /// <summary>
        /// 机构主管id
        /// </summary>
        public string managerId { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string description { get; set; }

        /// <summary>
        /// 职责
        /// </summary>
        public string responsibility { get; set; }

        /// <summary>
        /// 目标
        /// </summary>
        public string target { get; set; }

        /// <summary>
        /// 排序码
        /// </summary>
        public long? sortCode { get; set; }
    }
}
